package com.chain.BrotherExchange.data.model;

import java.util.List;

public class ApplyUnlcokList extends BaseResponseModel<ApplyUnlcokList.DataBean> {


    public static class DataBean {
        /**
         * list : {"page_index":1,"page_size":10,"total_page":1,"total":7,"items":[{"id":7,"uid":100137,"total":"990","create_time":"2019-01-17 16:44:06","Status":3,"token_id":1},{"id":6,"uid":100137,"total":"990","create_time":"2019-01-17 16:44:04","Status":3,"token_id":1},{"id":5,"uid":100137,"total":"990","create_time":"2019-01-17 16:43:32","Status":3,"token_id":1},{"id":1,"uid":100137,"total":"990","create_time":"2019-01-15 19:23:51","Status":3,"token_id":1},{"id":2,"uid":100137,"total":"990","create_time":"2019-01-15 19:23:51","Status":1,"token_id":1},{"id":3,"uid":100137,"total":"990","create_time":"2019-01-15 19:23:51","Status":3,"token_id":1},{"id":4,"uid":100137,"total":"990","create_time":"2019-01-15 19:23:51","Status":3,"token_id":1}]}
         */

        private ListBean list;

        public ListBean getList() {
            return list;
        }

        public void setList(ListBean list) {
            this.list = list;
        }

        public static class ListBean {
            /**
             * page_index : 1
             * page_size : 10
             * total_page : 1
             * total : 7
             * items : [{"id":7,"uid":100137,"total":"990","create_time":"2019-01-17 16:44:06","Status":3,"token_id":1},{"id":6,"uid":100137,"total":"990","create_time":"2019-01-17 16:44:04","Status":3,"token_id":1},{"id":5,"uid":100137,"total":"990","create_time":"2019-01-17 16:43:32","Status":3,"token_id":1},{"id":1,"uid":100137,"total":"990","create_time":"2019-01-15 19:23:51","Status":3,"token_id":1},{"id":2,"uid":100137,"total":"990","create_time":"2019-01-15 19:23:51","Status":1,"token_id":1},{"id":3,"uid":100137,"total":"990","create_time":"2019-01-15 19:23:51","Status":3,"token_id":1},{"id":4,"uid":100137,"total":"990","create_time":"2019-01-15 19:23:51","Status":3,"token_id":1}]
             */

            private int page_index;
            private int page_size;
            private int total_page;
            private int total;
            private List<ItemsBean> items;

            public int getPage_index() {
                return page_index;
            }

            public void setPage_index(int page_index) {
                this.page_index = page_index;
            }

            public int getPage_size() {
                return page_size;
            }

            public void setPage_size(int page_size) {
                this.page_size = page_size;
            }

            public int getTotal_page() {
                return total_page;
            }

            public void setTotal_page(int total_page) {
                this.total_page = total_page;
            }

            public int getTotal() {
                return total;
            }

            public void setTotal(int total) {
                this.total = total;
            }

            public List<ItemsBean> getItems() {
                return items;
            }

            public void setItems(List<ItemsBean> items) {
                this.items = items;
            }

            public static class ItemsBean {
                /**
                 * id : 7
                 * uid : 100137
                 * total : 990
                 * create_time : 2019-01-17 16:44:06
                 * Status : 3
                 * token_id : 1
                 */

                private int id;
                private int uid;
                private String total;
                private String create_time;
                private int Status;
                private int token_id;

                public int getId() {
                    return id;
                }

                public void setId(int id) {
                    this.id = id;
                }

                public int getUid() {
                    return uid;
                }

                public void setUid(int uid) {
                    this.uid = uid;
                }

                public String getTotal() {
                    return total;
                }

                public void setTotal(String total) {
                    this.total = total;
                }

                public String getCreate_time() {
                    return create_time;
                }

                public void setCreate_time(String create_time) {
                    this.create_time = create_time;
                }

                public int getStatus() {
                    return Status;
                }

                public void setStatus(int Status) {
                    this.Status = Status;
                }

                public int getToken_id() {
                    return token_id;
                }

                public void setToken_id(int token_id) {
                    this.token_id = token_id;
                }

                public String getStatusText() {
                    switch (this.Status){
                        case 1:return "申请中";
                        case 2:return "已完成";
                        case 3:return "已取消";
                        default:return "";
                    }
                }
            }
        }
    }
}
